# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models


class HotelOrder(models.Model):
    name = models.CharField(u'客户名', max_length=20)
    id_card = models.CharField(u'身份证', max_length=18)
    people_num = models.IntegerField(u'入住人数')
    mobile = models.CharField(u'手机号', max_length=11)
    s_time = models.DateTimeField(u'入住时间')
    e_time = models.DateTimeField(u'离开时间')
    type = models.IntegerField(u'订单类型') #1：入住 2：预定 3:退房
    gender = models.CharField(u'性别', choices=(
        ('male', u'男'), ('female', u'女')), default='male', max_length=6)
    room_num = models.IntegerField(u'房间号', default=0)
    room_type = models.CharField(u'房间类型', max_length=20,blank=True)
    money = models.CharField(u'消费金额', max_length=20,blank=True)

    class Meta:
        verbose_name = u'订单'
        verbose_name_plural = verbose_name